package xyz.xuminghai.javafx_learn.stage;

import javafx.application.Application;
import javafx.stage.Screen;
import javafx.stage.Stage;

/**
 * 2023/1/9 13:59 星期一<br/>
 * 屏幕信息
 *
 * @author xuMingHai
 */
public class ScreenApp extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        Screen primaryScreen = Screen.getPrimary();
        System.out.println("primaryScreen.getDpi() = " + primaryScreen.getDpi());
        System.out.println("primaryScreen.getBounds() = " + primaryScreen.getBounds());
        System.out.println("primaryScreen.getVisualBounds() = " + primaryScreen.getVisualBounds());
        System.out.println("primaryScreen.getOutputScaleX() = " + primaryScreen.getOutputScaleX());
        System.out.println("primaryScreen.getOutputScaleY() = " + primaryScreen.getOutputScaleY());
        System.out.println("primaryScreen = " + primaryScreen);
    }

}